<?php

class Nachricht {
	
	public $message;
	public $id;
	
	public function Nachricht($id,$message){
		$this->id = $id;
		$this->message = $message;
	}
	
	public function getCode(){
		$code="<div class='meldung'><form action='nachrichtLoeschen.php?redirect=".$_SERVER['PHP_SELF']."' method='post'><input type='hidden' name='id' value='".$this->id."' />
		<table>
			<tr>
				<td>
					<input type='image' src='images/kreuz.png' alt='Ausblenden'/>
				</td>
				<td>	
					".$this->message." 
				</td>
			</tr>
		</table></form></div>";
		return $code;
	}
	
}

?>